package com.hdsx.restful.ygzt.cgggqcyyzd.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.cgggqcyyzd.bean.Cgggqcyyzd;
import com.hdsx.restful.ygzt.cgggqcyyzd.mapper.CgggqcyyzdMapper;
import com.hdsx.restful.ygzt.cgggqcyyzd.service.CgggqcyyzdServer;
/**
 * cgggqcyyzdServer实现类
 *
 */
@Service
public class CgggqcyyzdServerImpl extends BaseOpearte<Cgggqcyyzd> implements CgggqcyyzdServer {

	public CgggqcyyzdServerImpl() {
		super("GIS_CGGGQCYYZD");
	}

	@Resource(name="cgggqcyyzdMapper")
	private CgggqcyyzdMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String name, String lxbm) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", name);
		parameter.put("lxbm", lxbm);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Cgggqcyyzd> queryList(String xzqhbm, String name, String lxbm, int begin, int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", name);
		parameter.put("lxbm", lxbm);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Cgggqcyyzd> lists=mapper.queryList(parameter);
		return lists;
	}
	@Override
	public Cgggqcyyzd queryById(String id) {
		return mapper.selectById(id);
	}
	@Override
	public List<String> selectName(String zdmc,String dylxbm,String xzqhbm){
		return mapper.selectName(zdmc,dylxbm,xzqhbm);
	}
	@Override
	public List<String> selectLxbm(String dylxbm,String xzqhbm){
		return mapper.selectLxbm(dylxbm,xzqhbm);
	}
}
